package org.gpslw.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bedatadriven.jackson.datatype.jts.serialization.GeometrySerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import org.gpslw.typehandler.GeometryTypeHandler;
import org.locationtech.jts.geom.Geometry;

import java.time.LocalDate;

@Data
@TableName(value = "nyc_homicides", schema = "geoserver", autoResultMap = true)
public class NycHomicides {

    @TableId(type =IdType.AUTO)
    private Integer gid;

    private Float id;

    private LocalDate incidentD;

    private Float year;

    private String boroname;

    private String numVictim;

    private String primaryMo;

    private String weapon;

    private String lightDark;


    @TableField(typeHandler = GeometryTypeHandler.class)
    private Geometry geom;
}
